<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Agreements.BudgetBreakdownPage"
    CodeFile="BudgetBreakdown.aspx.cs" %>

<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>BudgetBreakdown</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="BudgetBreakdownForm" method="post" runat="server">
        <table class="Container" width="100%">
            <tr>
                <td>
                    <table class="Header" width="100%">
                        <tr>
                            <td>
                                <cc1:Header ID="header" runat="server" OnNavigate="OnHeaderNavigate" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:AgreementsSubNavigation ID="subNavigation" runat="server" EnableOverviewNavigation="true"
                                    OnNavigate="OnSubNavigate" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:AgreementDetailsSubNavigation ID="detailsSubNavigation" runat="server" OnNavigate="OnDetailsSubNavigate" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <br />
                                <cc2:BreadCrumb ID="breadCrumb" runat="server" OnNavigate="OnNavigate" />
                                <br />
                            </td>
                        </tr>
                    </table>
                    <table width="100%" style="background-color:#ffffff" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                <table>
                                    <tr>
                                        <td>
                                            <cc2:Annunciator ID="annunciator" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                                <table class="PlaceBar">
                                    <tr>
                                        <td class="PageName">
                                            Budget Breakdown</td>
                                        <td align="center">
                                            <cc1:RefreshDates ID="refreshDates" runat="server" SalaryAsOfDateVisible="False"
                                                POAPAsOfDateVisible="False" GLAsOfDateVisible="True" Visible="True" />
                                        </td>
                                        <td align="right">
                                            <cc1:InsightDownloadBar ID="downloadBar" runat="server" OnDownloadToExcel="OnDownloadToExcel"
                                                OnDownloadToPDF="OnDownloadToPDF" OnFailedAction="OnDownloadFailed" useRootHost="true" />
                                        </td>
                                    </tr>
                                </table>
                                <table width="100%" cellspacing="0">
                                    <tr>
                                        <td>
                                            <cc2:Pager ID="pagerAboveDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
                                                OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:DataGrid ID="dataGrid" runat="server" AllowCustomPaging="True" AllowPaging="True"
                                                AllowSorting="True" AutoGenerateColumns="False" CssClass="DataGrid" OnItemCreated="OnItemCreated"
                                                OnItemDataBound="OnItemDataBound" OnSortCommand="OnSort" ShowFooter="True" Width="100%">
                                                <AlternatingItemStyle CssClass="DataGridAlternatingItem" />
                                                <ItemStyle CssClass="DataGridItem" />
                                                <HeaderStyle CssClass="DataGridHeader" />
                                                <PagerStyle Visible="False" />
                                                <FooterStyle CssClass="DataGridFooter" />
                                                <Columns>
                                                    <asp:BoundColumn DataField="FundNumber" SortExpression="FundNumber" HeaderText="<nobr>Fund #</nobr>" />
                                                    <asp:BoundColumn DataField="BudgetAmount" SortExpression="BudgetAmount" ItemStyle-HorizontalAlign="Right"
                                                        HeaderText="<nobr>Budget Amount</nobr>" />
                                                    <asp:BoundColumn DataField="Title" SortExpression="ProjectTitle" HeaderText="Title" />
                                                    <asp:BoundColumn DataField="ProjectStartDate" SortExpression="ProjectStartDate" HeaderText="<nobr>Project Start</nobr>" />
                                                    <asp:BoundColumn DataField="ProjectEndDate" SortExpression="ProjectEndDate" HeaderText="<nobr>Project End</nobr>" />
                                                    <asp:BoundColumn DataField="BudgetStartDate" SortExpression="BudgetStartDate" HeaderText="<nobr>Budget Start</nobr>" />
                                                    <asp:BoundColumn DataField="BudgetEndDate" SortExpression="BudgetEndDate" HeaderText="<nobr>Budget End</nobr>" />
                                                    <asp:BoundColumn DataField="SponsorName" SortExpression="SponsorName" HeaderText="Sponsor" />
                                                    <asp:BoundColumn DataField="PIName" SortExpression="PIName" HeaderText="<nobr>PI Name</nobr>" />
                                                </Columns>
                                            </asp:DataGrid>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <cc2:Pager ID="pagerBelowDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
                                                OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
